<?php



$cMsg =  [
    [
        "Title"=> "运动服饰秒杀专场！速来抢购",
        "Description"=>"运动服饰秒杀专场！速来抢购",
        "PicUrl"=>"http://t00img.yangkeduo.com/t11img/images/2018-07-15/10fee97e56c2729d2ceb08d0332d74fe.jpeg",
        "Url"=>"https://a.toutiaonanren.com/api/d/qrB8JO"
    ],

    [
        "Title"=>"【专属大红包】最高100元现金红包",
        "Description"=>"【专属大红包】最高100元现金红包",
        "PicUrl"=>"http://qq.yh31.com/tp/zjbq/201804161336136888.gif",
        "Url"=>"https://mobile.yangkeduo.com/duo_cms_mall.html?pid=1584127_14143569&sign=CM24ef24f1f3e928c93bb60d36ce236c8d&cpsSign=CM24ef24f1f3e928c93bb60d36ce236c8d&duoduo_type=2&refer_share_channel=message&opt_id=-1&sort_type=1",
    ],

    [
        "Title"=>"【包邮】券后10元 品彩7双装 袜子女短袜日系糖果色女士船袜短筒防臭袜学院风四季款",
        "Description"=>"【包邮】券后10元 品彩7双装 袜子女短袜日系糖果色女士船袜短筒防臭袜学院风四季款",
        "PicUrl"=>"http://t00img.yangkeduo.com/goods/images/2018-07-27/80eb9bbe1dcb0ad0a1f2f4d27dcab65d.jpeg",
        "Url"=>"https://mobile.yangkeduo.com/duo_coupon_landing.html?goods_id=178270273&pid=1008918_13344280&sign=CC2197852ab3ce605306a03a41b2b0d5fb&cpsSign=CC2197852ab3ce605306a03a41b2b0d5fb&duoduo_type=2&refer_share_channel=message",
    ],

    [
        "Title"=>"【包邮】20元 森雅度男鞋秋季新款户外轻便厚底防滑运动鞋男士休闲鞋跑步鞋男鞋",
        "Description"=>"【包邮】森雅度男鞋秋季新款户外轻便厚底防滑运动鞋男士休闲鞋跑步鞋男鞋",
        "PicUrl"=>"http://t00img.yangkeduo.com/goods/images/2018-08-01/87e8e6eea4b26152adb19030c688b5f6.jpeg",
        "Url"=>"https://a.toutiaonanren.com/api/d/qrt3ML",
    ],


    [
        "Title"=>"【包邮】10元【三标齐全】婉品春夏帆布鞋女拉毛平底休闲牛仔布小白鞋休闲板鞋",
        "Description"=>"【包邮】10元【三标齐全】婉品春夏帆布鞋女拉毛平底休闲牛仔布小白鞋休闲板鞋",
        "PicUrl"=>"http://t00img.yangkeduo.com/goods/images/2018-07-30/e73b6a6149908ba38237c9db6fa6f65f.jpeg",
        "Url"=>"https://a.toutiaonanren.com/api/d/qrwgnj",
    ],

    [
        "Title"=>"【包邮】40元 ins运动鞋女韩版ulzzang原宿学生跑步网面透气网鞋百搭厚底老爹鞋",
        "Description"=>"【包邮】40元 ins运动鞋女韩版ulzzang原宿学生跑步网面透气网鞋百搭厚底老爹鞋",
        "PicUrl"=>"http://t00img.yangkeduo.com/goods/images/2018-07-27/0a3539cc3901cc1f316f5d0c00e81fad.jpeg",
        "Url"=>"https://a.toutiaonanren.com/api/d/qryq7p",
    ],


];

$redis = new Redis();
$redis->connect('127.0.0.1', 6379);
$redis->setex("hot_customer", 86400, json_encode($cMsg, JSON_UNESCAPED_UNICODE));


$topColor = '#7B68EE';
$wordColor="#173177";

$tMsg = [
    [
        'tplId' => 'SPUimKmVxJ0RjHYRHdUOdx_imVlmDFX-NeoasGBhuDY',
        'url' => 'https://mobile.yangkeduo.com/duo_cms_mall.html?pid=1584127_14143569&sign=CM24ef24f1f3e928c93bb60d36ce236c8d&cpsSign=CM24ef24f1f3e928c93bb60d36ce236c8d&duoduo_type=2&refer_share_channel=message&opt_id=-1&sort_type=1',
        "withdrawMoney" => ['value' => "最高100元", 'color' => $wordColor],
        "withdrawTime" => ['value' => '立即到帐', 'color' => $wordColor],
        'cardInfo' => ['value' => '峰融用户专属！', 'color' => $wordColor],
        'arrivedTime' => ['value' => '领取之后2小时以内有效！', 'color' => $wordColor],
        "remark" => ['value' => '走过路过，不要错过!', 'color' => $wordColor],
    ],
    [
        'tplId' => '1f2AFVBsPWTvnDGM3M6bvr0HzEbP09mQ8Dw6tGP6pOI',
        'url' => 'https://a.toutiaonanren.com/api/d/qrE3tP',
        "first" => ['value' => "拼多多给你送家具了", 'color' => $wordColor],
        "keyword1" => ['value' => '【包邮】家里人衣帽架落地卧室挂衣架简易经济型衣服架子铁艺喷涂管收纳架', 'color' => $wordColor],
        'keyword2' => ['value' => '领券立减3元,仅需12', 'color' => $wordColor],
        "remark" => ['value' => '走过路过，不要错过!', 'color' => $wordColor],
    ]
];

$redis->setex("hot_template", 86400, json_encode($tMsg, JSON_UNESCAPED_UNICODE));
echo "设置完毕\n";